package lab01;

import java.util.Scanner;

public class Test07 {
    public static void main(String[] args) {
        System.out.println("请输入成绩：");
        Scanner sc=new Scanner(System.in);
        int i=sc.nextInt();
        if (i>=85&&i<=100){
            System.out.println("成绩为A级");
        }else if(i>=70&&i<=84){
            System.out.println("成绩为B级");
        }else if(i>=60&&0<=74){
            System.out.println("成绩为C级");
        }else{
            System.out.println("成绩为D级");
        }
    }
}

